<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:89:"D:\myphp_www\PHPTutorial\WWW\eater\OneBase\public/../app/admin\view\menus\menus_edit.html";i:1569479410;s:94:"D:\myphp_www\PHPTutorial\WWW\eater\OneBase\public/../app/admin\view\layout\edit_btn_group.html";i:1569479410;}*/ ?>
<form action="<?php echo url(); ?>" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>菜品名称</label>
              <span>（菜品名称，用于前端展示）</span>
              <input class="form-control" name="name" placeholder="请输入菜品名称" value="<?php echo (isset($info['name']) && ($info['name'] !== '')?$info['name']:''); ?>" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>价格</label>
              <input class="form-control" name="price" placeholder="请输入价格" value="<?php echo (isset($info['price']) && ($info['price'] !== '')?$info['price']:'0'); ?>" type="text">
            </div>
          </div> 
          <div class="col-md-6">
            <div class="form-group">
              <label>库存</label>
              <input class="form-control" name="inventory" placeholder="请输入库存" value="<?php echo (isset($info['inventory']) && ($info['inventory'] !== '')?$info['inventory']:'0'); ?>" type="text">
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>推荐指数</label>
              <input class="form-control" name="recommend" placeholder="请输入推荐指数" value="<?php echo (isset($info['recommend']) && ($info['recommend'] !== '')?$info['recommend']:'0'); ?>" type="text">
            </div>
          </div>

           <div class="col-md-6">
            <div class="form-group">
                <label>菜品图片</label>
                <span class="">（请上传单张图片）</span>
                <br/>
                <?php $url = (isset($info['url']) && ($info['url'] !== '')?$info['url']:'0'); ?>
                <?php echo widget('file/index', ['name' => 'url', 'value' => $url, 'type' => 'img']); ?>
            </div>
          </div>
            
            
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="<?php echo (isset($info['id']) && ($info['id'] !== '')?$info['id']:'0'); ?>"/>
        
        <button  type="submit" class="btn ladda-button ajax-post" data-style="slide-up" target-form="form_single">
    <span class="ladda-label"><i class="fa fa-send"></i> 确 定</span>
</button>

<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
      </div>
        
      </div>

</form>